var file = (function() {
	return {
		scanFiles: function(path, filter){
			var filterDate = DateUtil.string2Date(filter, 'yyyy-MM-dd HH:mm:ss');
			var files = [];
			file.work(files, path, filterDate);
			return files;
		},
		work:function(files, path,filterDate){
			var fs = require('fs');
			var dirList = fs.readdirSync(path);
			dirList.forEach(function(item){
				if(item.charAt(0) != '.'){
					var fileStat = fs.statSync(path+'/'+item);
					if(fileStat.isFile() ){
						if(fileStat.mtime.getTime()> filterDate.getTime()){
							files.push(path + '/' + item);
						}
					}else{
						file.work(files, path + '/' + item, filterDate);
					}
				}			
			});
		}
	};
})();